package com.yantong.service;

import com.yantong.pojo.Message;
import com.yantong.pojo.MessageType;
import com.yantong.utils.PageUtils;

import java.util.Map;

public interface MessageService {
    PageUtils<MessageType> messageTypeList(int offset, int limit);
    int addMessageType(MessageType messageType);
    int deleteMessageType(Long type_id);
    PageUtils<Message> backMessageList(int offset, int limit);
    PageUtils<Message> backMessageListByCentreId(Long centreId, int offset, int limit);
    int addMessageBack(Message message);
    Message getMessageBackPrimaryKey(Long id);
    int updateMessageBack(Message message);
    int deleteMessageBack(Long id);
    Map<String,Object> getMessageTypeListToMap();
    int sendMessageBack(Long id);
    PageUtils<Message> getMessageList(Long centreId, Long memberId, Long typeId, Long teamId, String isRead, int offset, int limit);
    int messageListSetRead(Long centreId, Long memberId, Long typeId, Long teamId);
    int messageSetRead(Long id);
    Message getMessageByKey(Long id);
    int updateMessage(Message message);
    int addMessage(Message message);
    int deleteMessage(Long id);
    Map<String,Object> getCentreIdListToMap();
    Map<String,Object> getCentreById(Long centreId);
}
